<?php
use yii\helpers\Url;

return [
    [
        'class' => 'kartik\grid\CheckboxColumn',
        'width' => '20px',
    ],
    [
        'class' => 'kartik\grid\SerialColumn',
        'width' => '30px',
    ],
        // [
        // 'class'=>'\kartik\grid\DataColumn',
        // 'attribute'=>'id',
    // ],
    [
        'class'=>'\kartik\grid\DataColumn',
        'attribute'=>'invitation_code',
		 'width' => '100px',
    ],
    [
        'class'=>'\kartik\grid\DataColumn',
        'attribute'=>'character',
		 'width' => '100px',
    ],
    [
        'class'=>'\kartik\grid\DataColumn',
        'attribute'=>'dealer',
		 'width' => '100px',
    ],
    
    [
        'class'=>'\kartik\grid\DataColumn',
        'attribute'=>'post',
		 'width' => '100px',
    ],
     [
         'class'=>'\kartik\grid\DataColumn',
         'attribute'=>'name',
		  'width' => '100px',
     ],
     [
         'class'=>'\kartik\grid\DataColumn',
         'attribute'=>'genter',
		  'width' => '100px',
     ],
     [
         'class'=>'\kartik\grid\DataColumn',
         'attribute'=>'card_type',
		  'width' => '100px',
     ],
     [
         'class'=>'\kartik\grid\DataColumn',
         'attribute'=>'card_num',
		  'width' => '100px',
		  'content' => function($dataProvider){
                return $dataProvider['label'];
            },
     ],
     [
         'class'=>'\kartik\grid\DataColumn',
         'attribute'=>'telephone',
		  'width' => '100px',
     ],
     [
         'class'=>'\kartik\grid\DataColumn',
         'attribute'=>'nationality',
		  'width' => '100px',
     ],
     
     [
         'class'=>'\kartik\grid\DataColumn',
         'attribute'=>'spare_contact',
		  'width' => '100px',
     ],
     [
         'class'=>'\kartik\grid\DataColumn',
         'attribute'=>'spare_contact_phone',
		  'width' => '100px',
     ],
     [
         'class'=>'\kartik\grid\DataColumn',
         'attribute'=>'come_transportation',
		  'width' => '100px',
     ],
     [
         'class'=>'\kartik\grid\DataColumn',
         'attribute'=>'departure_city',
		  'width' => '100px',
     ],
     [
         'class'=>'\kartik\grid\DataColumn',
         'attribute'=>'arrival_location',
		  'width' => '100px',
     ],
     [
         'class'=>'\kartik\grid\DataColumn',
         'attribute'=>'come_flight_number',
		  'width' => '100px',
     ],
     [
         'class'=>'\kartik\grid\DataColumn',
         'attribute'=>'arrival_time',
		  'width' => '100px',
     ],
     [
         'class'=>'\kartik\grid\DataColumn',
         'attribute'=>'is_aircraft',
		  'width' => '100px',
     ],
     [
         'class'=>'\kartik\grid\DataColumn',
         'attribute'=>'back_transportation',
		  'width' => '150px',
     ],
     [
         'class'=>'\kartik\grid\DataColumn',
         'attribute'=>'arrived_city',
		  'width' => '100px',
     ],
     [
         'class'=>'\kartik\grid\DataColumn',
         'attribute'=>'departure_location',
		  'width' => '150px',
     ],
     [
         'class'=>'\kartik\grid\DataColumn',
         'attribute'=>'back_flight_number',
     ],
     [
         'class'=>'\kartik\grid\DataColumn',
         'attribute'=>'departure_time',
     ],
     [
         'class'=>'\kartik\grid\DataColumn',
         'attribute'=>'is_send',
     ],
	 [
         'class'=>'\kartik\grid\DataColumn',
         'attribute'=>'accompanied',
     ],
     [
         'class'=>'\kartik\grid\DataColumn',
         'attribute'=>'dietary_needs',
     ],
     [
         'class'=>'\kartik\grid\DataColumn',
         'attribute'=>'is_ceremony',
     ],
     [
         'class'=>'\kartik\grid\DataColumn',
         'attribute'=>'is_hotel',
     ],
     [
         'class'=>'\kartik\grid\DataColumn',
         'attribute'=>'come_hotel',
     ],
     [
         'class'=>'\kartik\grid\DataColumn',
         'attribute'=>'back_hotel',
     ],
     [
         'class'=>'\kartik\grid\DataColumn',
         'attribute'=>'forum',
     ],
     [
        'class'=>'\kartik\grid\DataColumn',
        'attribute'=>'created_at',
     ],
     [
         'class'=>'\kartik\grid\DataColumn',
         'attribute'=>'updated_at',
     ],
//     [
//         'class'=>'\kartik\grid\DataColumn',
//         'attribute'=>'deleted_at',
//     ],
//     [
//         'class'=>'\kartik\grid\DataColumn',
//         'attribute'=>'created_by',
//     ],
//     [
//         'class'=>'\kartik\grid\DataColumn',
//         'attribute'=>'updated_by',
//     ],
//     [
//         'class'=>'\kartik\grid\DataColumn',
//         'attribute'=>'deleted_by',
//     ],
//     [
//         'class'=>'\kartik\grid\DataColumn',
//         'attribute'=>'status',
//     ],
    [
        'class' => 'kartik\grid\ActionColumn',
        'dropdown' => false,
        'vAlign'=>'middle',
        'urlCreator' => function($action, $model, $key, $index) { 
                return Url::to([$action,'id'=>$key]);
        },
        'viewOptions'=>['role'=>'modal-remote','title'=>'View','data-toggle'=>'tooltip'],
        'updateOptions'=>['role'=>'modal-remote','title'=>'Update', 'data-toggle'=>'tooltip'],
        'deleteOptions'=>['role'=>'modal-remote','title'=>'Delete', 
                          'data-confirm'=>false, 'data-method'=>false,// for overide yii data api
                          'data-request-method'=>'post',
                          'data-toggle'=>'tooltip',
                          'data-confirm-title'=>'Are you sure?',
                          'data-confirm-message'=>'Are you sure want to delete this item'], 
    ],

];   